import {
    createApp
} from 'vue'
import App from './App.vue'

import routes from './route2'
import request from './request'
import ErrorData from './error_handle';

import './index.css'
import { Button,Dialog,Toast } from 'vant'



request.errorData = ErrorData.data;
request.vue = createApp();
request.toast = Toast
request.Dialog = Dialog
request.router = routes;
var unit = request
window.unit = unit

createApp(App)
.use(Button)
.use(routes)
.mount('#app')